class UserLocationInfo {
  String latitude; //纬度
  String longitude; //经度
  String address; //定位地址
  String cityCode;
  String city;
  String name;

  UserLocationInfo(
      {this.latitude = '0.0',
      this.longitude = '0.0',
      this.address = '',
      this.cityCode = '',
      this.city = '',
      this.name = ''});

  Map<String, dynamic> toJson() => {
        "latitude": latitude,
        "longitude": longitude,
        "address": address,
        "citycode": cityCode,
        "city": city,
        "name": name,
      };

  factory UserLocationInfo.fromJson(Map<String, dynamic> json) => UserLocationInfo(
        latitude: json["latitude"] ?? 0.0,
        longitude: json["longitude"] ?? 0.0,
        address: json["address"] ?? '',
        cityCode: json["citycode"] ?? '',
        city: json["city"] ?? '',
        name: json["name"] ?? '',
      );
}
